#include "MySQLClient.h"

#include <cstdlib>
#include <mysql/mysql.h>


int main()
{
    MySQLClient myclient;
    bool ret = myclient.connect("192.168.108.128", 3306, "root", "1234", "3th");
    if(!ret) {
        return EXIT_FAILURE;
    }

    //string sql1 = "INSERT INTO person VALUES(14, 'beiliya', 40, 60, 60, 60)";
    //myclient.writeOperationQuery(sql1);
    string sql2 = "select * from student";
    vector<vector<string>> res = myclient.readOperationQuery(sql2);
    MySQLClient::dump(res);

    return 0;
}